package com.suyx.job.entity;

import lombok.Data;

/**
 * @Auther: lanyanhua
 * @Date: 2018/11/1 0001 13:54
 * @Description:
 */
@Data
public class LayerResult {
    private String code;

    private String msg;

    public LayerResult(boolean b) {
        this.code = b? "200" :"404";
    }
    public LayerResult(String msg) {
        this.code = "404";
        this.msg = msg;
    }
    public LayerResult(boolean b,String msg) {
        this.code = b? "200" :"404";
        this.msg = msg;
    }
    public LayerResult(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
